package com.biz.primus.base.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 增量索引 Vo
 *
 * @author david-liu
 * @date 2017年01月11日
 * @reviewer
 * @see
 */
@Getter
@Setter
@ApiModel("索引构建对象VO")
@NoArgsConstructor
@AllArgsConstructor
public class IncrIndexVo implements Serializable {

    private static final long serialVersionUID = -627892944069933513L;

    /**
     * 索引唯一标识符
     */
    @ApiModelProperty("索引唯一标识符")
    private String identityCode;

    /**
     * 是否将要被删除
     */
    @ApiModelProperty("是否将要被删除")
    private Boolean willBeDeleted = false;

    public IncrIndexVo(String identityCode) {
        this.identityCode = identityCode;
        this.willBeDeleted = false;
    }
}
